import {request} from '.././utils/request'
enum API {
	POEMSLIST_URL = '/poetry/poems/list',
	POEMSSORT_URL = '/api/type/getList',
	POEMTYPE_URL = '/api/poem/listPoemType',
	POEMSDATA_URL = '/poetry/ancientpoetry/list',
	POEMDETAILURL = '/api/ancientpoetry/getAncientInfo/'
}

export const getPoemsList = () =>{
	return  request({
		url:API.POEMSLIST_URL
	})
}
// 诗人分类接口
export const getpmSortList  = ()=>{
 return	request({
		url:API.POEMSSORT_URL,
		
	})
}

// 名词分类
export const httpGetPoemType = ()=>{
	return request({
		url:API.POEMTYPE_URL
	})
}

// 读书破万卷 获取所有古诗
export const httpPoemData = ()=>{
	return request({
		url:API.POEMSDATA_URL,
		method:'GET'
	})
}

// 古诗详情
export const httpPoemDetail = (poemName)=>{
	console.log("poemName+====>",poemName);
	
	return request({
		url:API.POEMDETAILURL +'?poemName='+poemName ,
		method:'GET'
	})
}